#ifndef CIOPS_OP_SELECTVERTICES_H
#define CIOPS_OP_SELECTVERTICES_H

#include "Operation.h"

namespace CIOps {
    /**
     * This class represents the operation of selection of geometries's vertices  
     **/
    class OP_SelectVertices : public Operation {    

    public:            
        OP_SelectVertices (std::vector<CIView::View*>& v);      //Constructor
        virtual ~OP_SelectVertices();                           //Destructor

    protected:
        CICore::Point2D click;                      //The mouse click coordinates (In window coordinates)

        bool hadVerticesSelected;                   //A boolean to indicate if there was at least one vertex selected before the new selection

    public:            
        //Utility Methods
        virtual int Exec();         //Method called to execute directly the operation
        virtual void Undo();        //Method called to undo the operation
        virtual void Redo();        //Method called to redo the operation

        virtual void MousePressEvent (CIView::View* view, QMouseEvent* e);        //Mouse Pressed event handler
        virtual void MouseReleaseEvent (CIView::View* view, QMouseEvent* e);      //Mouse Released event handler
        virtual void MouseMoveEvent (CIView::View* view, QMouseEvent* e);         //Mouse Moved event handler
        virtual void WheelEvent (CIView::View* view, QWheelEvent* e);             //Wheel event handler
    };
}

#endif /* CIOPS_OP_SELECTVERTICES_H */
